import 'package:flutter/material.dart';

/// 初始化环境配置
class AppConfig extends InheritedWidget {

  /// BaseUrl
  static String apiHost = '';
  /// 微信APPID
  static String wxAppId = 'wx079ec2e2dd24c324';
  /// APPStore ID
  static String appStoreId = '1610317795';
  /// 微信 universalLink
  static String universalLink = 'https://api.tailaii.com/apple-app-site-association';
  /// 微信客服Url
  // static String wxCustomerServiceUrl = 'https://work.weixin.qq.com/kfid/kfcd47e0a075bb61b80';
  // static String wxCustomerServiceUrl = 'https://work.weixin.qq.com/kfid/kfc9a59eb0afd5aec51';
  // static String wxCustomerServiceUrl = 'https://work.weixin.qq.com/kfid/kfcc5d8d17df0fc8a3a';
  static String wxCustomerServiceUrl = 'https://work.weixin.qq.com/kfid/kfcb87d56098fe07205';
  /// 企业微信ID
  static String corpId = 'ww404ed0996a076b6e';
  /// 秘钥
  // static String secretKey = '6GRHg6Qv';
  static String secretKey = '7dt8udT6Sq';
  /// 快递地址
  static String logisticsUrl = 'https://m.kuaidi100.com/result.jsp?nu=';
  /// QQ AppID
  static String qqAppId = '101995595';
  /// 分享页
  static String shareWebPage = 'https://h5.tailaii.com/pages/join/downloadAPP';

  static String token = '';

  AppConfig(Widget child, {required String apiHost}): super(child: child) {
    AppConfig.apiHost = apiHost;
  }
  static AppConfig? of(BuildContext context) {
    return context.dependOnInheritedWidgetOfExactType<AppConfig>();
  }
  @override
  bool updateShouldNotify(InheritedWidget oldWidget) => false;
}
